package br.com.alinesoftware.app.entity;


import java.io.Serializable;
import com.powerlogic.jcompany.domain.validation.PlcUnifiedValidation;
import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.persistence.Id;
import javax.validation.constraints.Size;
import javax.persistence.GenerationType;
import javax.persistence.MappedSuperclass;
import com.powerlogic.jcompany.config.domain.PlcReference;
import javax.persistence.GeneratedValue;

@MappedSuperclass
@PlcUnifiedValidation
public abstract class GrupoAcesso  implements Serializable {

	private static final long serialVersionUID = 7429278656094972835L;

	@Id 
 	@GeneratedValue(strategy=GenerationType.AUTO, generator = "SE_GRUPO_ACESSO")
	@Column(nullable=false,length=5)
	private Long id;
	
	@NotNull
	@Size(max = 50)
	@Column
	@PlcReference(testDuplicity=true)
	private String casoUso;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id=id;
	}

	public String getCasoUso() {
		return casoUso;
	}

	public void setCasoUso(String casoUso) {
		this.casoUso = casoUso;
	}
}
